package chapter_5.bb;

public class Manager extends Employee {
    String department;
    static {
        System.out.println("Manager静态代码块");
    }
    {
        System.out.println("Manager构造代码块");
    }
    public Manager(String name, String department) {
        super(name);
        System.out.println("Manager构造方法");
        this.department = department;
    }

    public void test(){
        System.out.println(name);
        super.work();
        System.out.println(this.department);
        this.test1();
    }

    public void work(){
        System.out.println("aa");
    }

    public void test1(){

    }
}
